package com.bop.dehong.http.model;

import java.lang.reflect.Type;

import android.app.Activity;

import com.base.dehong.http.HttpRequest;
import com.base.dehong.http.RequestCallBack;
import com.bop.dehong.config.Config;
import com.bop.dehong.info.entity.GuideListEntity;
import com.google.gson.reflect.TypeToken;
/**
 * 引导页
 * @author YeFengYun
 *
 */
public class GuideModel extends HttpRequest<GuideListEntity>{

	public GuideModel(Activity activity, RequestCallBack<GuideListEntity> callback) {
		super(activity, callback);
	}

	@Override
	public String getURL() {
		return Config.getIP() + Config.getGuideUrl();
	}
	public void doNet(String platform) {
		mPostValues.put("platform", platform);
		requestByGet();
	}
	
	public Type getType(){
		return new TypeToken<GuideListEntity>() {}.getType();
	}

	@Override
	public Class<GuideListEntity> getClazz()
	{
		return GuideListEntity.class;
	}

}
